package com.itheima.spring.cyclicDependency2.bean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserService implements IService{

    @Autowired
    private OrderService orderService;

    public UserService(){
        System.out.println("实例化 UserService");
    }

    @Override
    public void test() {
        System.out.println("实现类：UserService");
    }

}
